package edu.whut.mall.admin.domain;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @program: d9lab-mall
 * @description: 商品提交表格
 * @author: Wayne
 * @create: 2020-05-05 11:28
 **/
@Data
public class ProductParams {

    @NotBlank
    private String productName;

    @NotBlank
    private String productDesc;

    private String productAttr;

    private List<ProductImageParams> productImages;

    @NotNull
    private BigDecimal originalPrice;


    /**
     * 现在价格
     */
    @NotNull
    private BigDecimal currentPrice;

    @NotNull
    private Integer stock;

    private Long merchantId;

    @NotNull
    private Long productCategoryId;

    private BigDecimal freight;
}
